package com.gdglc.spring.biz.impl.auth;

import java.util.List;

import com.gdglc.spring.biz.auth.FunctionauthorityBiz;
import com.y2.authprj.bean.auth.model.FunctionauthorityInfo;
import com.y2.authprj.dao.auth.IFunctionauthorityDao;

public class FunctionauthorityBizImpl implements FunctionauthorityBiz {

	
	private IFunctionauthorityDao dao; 
	
	public IFunctionauthorityDao getDao() {
		return dao;
	}

	public void setDao(IFunctionauthorityDao dao) {
		this.dao = dao;
	}

	@Override
	public List<FunctionauthorityInfo> findAll() {
		// TODO Auto-generated method stub
		return dao.findAll();
	}

	@Override
	public int add(FunctionauthorityInfo info) {
		// TODO Auto-generated method stub
		return dao.add(info);
	}

	@Override
	public int delete() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int update(FunctionauthorityInfo info) {
		// TODO Auto-generated method stub
		return dao.update(info);
	}

	@Override
	public FunctionauthorityInfo findById(String id) {
		// TODO Auto-generated method stub
		return dao.findById(id);
	}

	@Override
	public int updateIsgroup(FunctionauthorityInfo functionauthorityInfo) {
		// TODO Auto-generated method stub
		return dao.updateIsgroup(functionauthorityInfo);
	}

	@Override
	public int getIsGroup(int id) {
		// TODO Auto-generated method stub
		return dao.getIsGroup(id);
	}

	@Override
	public int deleteParentById(int parentId) {
		// TODO Auto-generated method stub
		return dao.deleteParentById(parentId);
	}

	@Override
	public List<FunctionauthorityInfo> getChileByRoot(int id) {
		// TODO Auto-generated method stub
		return dao.getChileByRoot(id);
	}

	@Override
	public List<FunctionauthorityInfo> findByParentId(String parentId) {
		// TODO Auto-generated method stub
		return dao.findByParentId(parentId);
	}

	@Override
	public List<FunctionauthorityInfo> findFunctionauthorityByName(String name) {
		// TODO Auto-generated method stub
		return dao.findFunctionauthorityByName(name);
	}

	@Override
	public List<String> getAllFunctionauthorityIdByStaffId(String id) {
		// TODO Auto-generated method stub
		return dao.getAllFunctionauthorityIdByStaffId(id);
	}
}
